/**
 * 
 */
package com.aem.sticky.button.events;

import com.aem.sticky.button.Button;


/**
 * Simplified click listener.
 * 
 * No other function is needed  than onclick.
 * 
 * Method to be overridden is executeAction.
 * 
 * @author abacs
 *
 */
public abstract class SimpleClickListener implements ClickListener {
	
	@Override
	public void onClick(Button clicked, float mx, float my) {
		this.onClick();
	}

	@Override
	public void onDoubleClick(Button clicked, float mx, float my) {  }

	@Override
	public void onRightClick(Button clicked, float mx, float my) {  }
	
	// -------------------------------------------------------------------------
	
	/**
	 * Method to be overridden.
	 */
	public abstract void onClick();

}
